TQADrawVGouraud
A drawing engine may define a method to draw Gouraud-shaded objects defined by vertices. This method is optional and must be supported only by drawing engines that do not want calls toQADrawVGouraud
to be replaced by calls to theQADrawPoint
,QADrawLine
, orQADrawTriGouraud
methods.
typedef void (*TQADrawVGouraud) ( const TQADrawContext *drawContext, unsigned long nVertices, TQAVertexMode vertexMode, const TQAVGouraud vertices[], const unsigned long flags[]);
drawContext
- A draw context.
nVertices
- The number of vertices contained in the
vertices
array.vertexMode
- A vertex mode. See "Vertex Modes" (page 1-56) for a description of the available vertex modes.
vertices
- An array of Gouraud vertices.
flags
- An array of triangle flags, or the value
NULL
. See "Triangle Flags Masks" (page 1-63) for a description of the available triangle flags. This parameter is valid only if thevertexMode
parameter contains the valuekQAVertexMode_Tri
,kQAVertexMode_Strip
, orkQAVertexMode_Fan
.DESCRIPTION
YourTQADrawVGouraud
function should draw the vertices in the array specified by thevertices
parameter into the draw context specified by thedrawContext
parameter, according to the vertex modes flag specified by thevertexMode
parameter. For instance, if the value of thevertexMode
parameter iskQAVertexMode_Polyline
, then the vertices in that array are interpreted as defining a polyline (a set of connected line segments). Gouraud shading should be applied to whatever objects are drawn.